package com.duobaoyu.dby.supply.biz.client.resource.bean.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName RiskStrategyConfigInfoVO
 * @createTime 15:03:00 2023/10/08
 */
@Data
public class RiskStrategyConfigInfoVO implements Serializable {
    private static final long serialVersionUID = 3026457347730598638L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 策略key
     */
    @ApiModelProperty(value = "策略key")
    private String itemCode;

    /**
     * 策略内容
     */
    @ApiModelProperty(value = "策略内容")
    private List<RiskStrategyContentTO> content;

    /**
     * 策略描述
     */
    @ApiModelProperty(value = "策略描述")
    private String itemDescribe;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class RiskStrategyContentTO{
        /**
         * 接收手机号,逗号分隔
         */
        private String mobile;
        /**
         * 表达式
         */
        private String expression;
        /**
         * 下单报错数量
         */
        private Integer errorOrderCount;
        /**
         * 大额订单金额
         */
        private Integer orderAccount;
        /**
         * 成功订单数量
         */
        private Integer successOrderCount;
        /**
         * 限制时间
         */
        private Integer limitTimeNum;
        /**
         * 单位: 1-天,2-小时,3-分钟
         */
        private Integer unit;

        /**
         * 开关:1-开,0-关
         */
        private Boolean izAble;

        /**
         * 渠道编码
         */
        private String channelCode;

        /**
         * 未使用
         */
        private Boolean nonUsed;
    }
}
